$OpenBSD: patch-kate_app_CMakeLists_txt,v 1.1 2014/01/14 21:34:22 zhuk Exp $
Fix linking.
--- kate/app/CMakeLists.txt.orig	Mon Jan 13 22:33:18 2014
+++ kate/app/CMakeLists.txt	Mon Jan 13 22:34:27 2014
@@ -34,7 +34,7 @@ if (NOT KDE_NO_DEPRECATED)
    set (KDE_4_4_LIBS_NEEDED ${KDE4_KUTILS_LIBS})
 endif()
 
-target_link_libraries(kateinterfaces  ${KDE_4_4_LIBS_NEEDED} ${QT_QTXML_LIBRARY} ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_KPARTS_LIBS} ${KACTIVITIES_LIBRARY} )
+target_link_libraries(kateinterfaces  ${KACTIVITIES_LIBRARY} ${KDE_4_4_LIBS_NEEDED} ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_KPARTS_LIBS} ${QT_QTXML_LIBRARY} )
 target_link_libraries(kateinterfaces  LINK_INTERFACE_LIBRARIES "${KDE4_KPARTS_LIBS}" )
 
 
@@ -57,12 +57,12 @@ if (WIN32)
 
     kde4_add_executable(kate ${kate_KDEINIT_SRCS} )
 
-    target_link_libraries( kate ${QT_QTMAIN_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kateinterfaces )
+    target_link_libraries( kate kateinterfaces ${KDE4_KDECORE_LIBS} ${QT_QTMAIN_LIBRARY} ${QT_QTGUI_LIBRARY} )
 
 else (WIN32)
     kde4_add_kdeinit_executable( kate ${kate_KDEINIT_SRCS})
 
-    target_link_libraries(kdeinit_kate ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} kateinterfaces )
+    target_link_libraries(kdeinit_kate kateinterfaces ${KDE4_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} )
 
     install(TARGETS kdeinit_kate ${INSTALL_TARGETS_DEFAULT_ARGS} )
 
